/// 菜单类型模型
class MenuModel {
  String? title;
  String? image;
  String? selectImage;
  int? menuTag;
  bool? isNetWorkImg;
  int? badges;

  /// 默认非网络图片
  MenuModel(
    this.title,
    this.image,
    this.menuTag, {
    this.selectImage,
    this.isNetWorkImg = false,
    this.badges = 0,
  });

  MenuModel.menuType(
    this.title,
    this.image,
    this.menuTag,
    this.isNetWorkImg, {
    this.selectImage,
    this.badges = 0,
  });

  MenuModel.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    image = json['image'];
    menuTag = json['menuTag'];
    isNetWorkImg = json['isNetWorkImg'];
    selectImage = json['selectImage'];
    badges = json['badges'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['image'] = this.image;
    data['menuTag'] = this.menuTag;
    data['isNetWorkImg'] = this.isNetWorkImg;
    data['selectImage'] = this.selectImage;
    data['badges'] = this.badges;
    return data;
  }
}
